package com.matongxue.springboot.user.kafak;


import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;

@Component
public class KafkaConsumer {

    @KafkaListener(topics = "kafka-topic")
    public void onMessage(String message){
        System.out.println(message);
    }

}
